package simonxianyu.learn.springmybatis.config;

import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 *
 * Created by simon on 2017/2/20.
 */
@EnableRedisHttpSession
public class LocalSessionConfig {

  @Bean
  public LettuceConnectionFactory lettuceConnectionFactory() {
    return new LettuceConnectionFactory();
  }
}
